Add provider status tracking and tools list UI#29
Merged
Conversation
- New GET /api/provider-status endpoint exposes per-provider initialization state (pending/ready/failed) from the background-startup registry - Provider list now shows "⏳ initializing" badge while setup runs and "✗ setup failed" badge (with error tooltip) if setup fails; ready providers show no status badge. Badges update every 4 seconds and are removed automatically once a provider becomes ready, no matter how long initialization takes. - New "📋 Tools" navbar button opens a read-only modal listing every registered tool grouped by provider, with status badges (⏳/✓/✗) and tool counts on each section header; includes a name/description filter - README documents the new badges, Tools panel, and /api/provider-status endpoint including the status schema - 10 new unit tests (8 functional + 2 UI smoke) covering all status states and the new UI elements; all 204 tests pass Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xy6caDMbbavMB1uzAP64jN
The 4-second interval now cancels itself as soon as no providers remain in the 'pending' state (all are either ready or failed). Providers never go back to pending without a server restart, so continued polling after that point would be wasted work. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xy6caDMbbavMB1uzAP64jN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds real-time provider initialization status tracking and a new read-only tools list panel to the UI. Users can now see which providers are still initializing, which have failed setup, and browse all registered tools grouped by provider with their readiness status.
Key Changes
GET /api/provider-status: Returns per-provider initialization state (pending/ready/failed) with error messages for failed providers/api/provider-statusevery 4 seconds and automatically stops once all providers settle (no pending states remain)/api/provider-statusendpoint and UI smoke testsImplementation Details
provider_statusmodule (imported dynamically) is queried for per-provider state; gracefully returns empty providers dict if the module is not loaded (synchronous mode)/v1/toolsand/api/provider-statusin parallel for efficiency__) to group tools by provider in the list viewsetIntervalwith automatic cleanup once all providers have settled, reducing unnecessary requestshttps://claude.ai/code/session_01Xy6caDMbbavMB1uzAP64jN